package com.zHan.sky.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zHan.sky.dto.GoodsSalesDTO;
import com.zHan.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface OrderDetailMapper extends BaseMapper<OrderDetail> {
    List<GoodsSalesDTO> selectSalesTop10(@Param("beginTime") LocalDateTime beginTime,
                                         @Param("endTime") LocalDateTime endTime);
}
